package com.yue.rpc.registry;

import com.yue.rpc.extension.SPI;

import java.net.InetSocketAddress;

/**
 * @description: 服务发现
 * @author: zhangqiyue
 * @date: 2023/3/2 15:26
 **/
@SPI
public interface ServiceRegistry {
    /**
     * register service
     *
     * @param rpcServiceName    rpc service name
     * @param inetSocketAddress service address
     */
    void registerService(String rpcServiceName, InetSocketAddress inetSocketAddress);

}